﻿using SourceCodeIoc.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SourceCodeIoc.Model
{
    /// <summary>
    /// 学生类
    /// </summary>
    [IOCService("Scope")]
    [AOP]
    public class Student
    {
        [IOCInject]
        public Teacher teacher { set; get; }
        public School school { set; get; }

        public virtual void Study()
        {
            //teacher.Classes();
            Console.WriteLine("学生开始学习");
        }
    }
}
